package org.museum.collection.service;

import org.museum.collection.domain.entity.Collection;
import com.baomidou.mybatisplus.extension.service.IService;
import org.museum.collection.domain.pojo.CustomCollection;
import org.museum.collection.domain.pojo.ListTableCollectionDetail;

import java.util.List;

/**
 * <p>
 * 藏品主表 服务类
 * </p>
 *
 * @author zafkiel
 * @since 2025-07-11
 */
public interface ICollectionService extends IService<Collection> {

    //获取藏品的详细信息
    ListTableCollectionDetail getCollectionDetail(String name);
    //随机获取四个同类别的藏品
    List<CustomCollection> getRandomCollection(String category);

    //判断用户是否点赞
    boolean isLikeCollection(String phone, Integer collectionId);

    //进行点赞
    boolean likeCollection(String phone, Integer collectionId);

    //进行取消点赞
    boolean cancelLikeCollection(String phone, Integer collectionId);
}
